package com.hspedu.set_;

import java.util.HashSet;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/7
 * @time 23:09
 */
public class HashSetSource02 {

    public static void main(String[] args) {
        HashSet hashSet = new HashSet();
        hashSet.add("java");
        hashSet.add("php");
        hashSet.add("java");
        System.out.println("hashSet = " + hashSet);

        HashSet h2 = new HashSet();
        for (int i = 1; i <= 13 ; i++) {
            h2.add(i+"hello");
        }
    }
}


